import request from '@/util/request'
import { userSearch, userAdd, userDelete, userSet,userSelect } from '@/constants/userRequestUrl'

//查询用户
export function usersearch(data) {
    return request({
        url: userSearch,
        method: 'post',
        data: data
    })
}

//查看用户
export function userselect(data) {
    return request({
        url: userSelect,
        method: 'get',
        params: data
    })
}


//修改用户
export function userset(data) {
    return request({
        url: userSet,
        method: 'put',
        data: data
    })
}

//添加用户
export function useradd(data) {
    return request({
        url: userAdd,
        method: 'post',
        data: data
    })
}

//删除用户
export function userdelete(data) {
    return request({
        url: userDelete,
        method: 'delete',
        data: data
    })
}